<form enctype="multipart/form-data" method="POST" action="/save/gallery/">
    <input type="file" name="photo"/>
    <input type="hidden" name="photo_path" value="<?= $this->form->getElement()->getPhotoPath()?>"/>
    <input type="hidden" name="photo_id" value="<?= $this->form->getElement()->getId()?>"/>
    <div style="margin: 15px 0;">
        <label for="album_id">Для альбома:</label>
        <select name="album_id" id="album_id">
            <? foreach ($this->form->albums as $album): ?>
                <? /** @var $album Application_Model_GalleryAlbums */?>
                <option <?if ($album->getId() == $this->form->albumId):?>selected="selected"<?endif;?> value="<?= $album->getId() ?>"><?= $album->getTitle() ?></option>
            <? endforeach; ?>
        </select>
    </div>
    <input type="submit" value="Готово"/>
</form>